import Service from './service';
import { useModel } from './model';

export const usePresenter = () => {
  const model = useModel();
  const service = new Service(model);

  const handleBackClick = () => {
    uni.navigateBack();
  };

  const handleHomeClick = () => {
    uni.switchTab({ url: '/pages/index/index' });
  };

  

  return {
    model,
    service,
    handleBackClick,
    handleHomeClick,
  };
};
